package com.wms.service.impl;

import com.wms.mapper.Membermapper;
import com.wms.pojo.Member;
import com.wms.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Project:
 * @CreateDate: Created in 2020/3/20 20:11
 * @Author: YXH
 */
@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    Membermapper membermapper;

    @Override
    public List<Member> allMember() {
        return membermapper.allMember();
    }

    @Override
    public Member queryById(int id) {
        return membermapper.queryById(id);
    }

    @Override
    public void addMember(Member member) {
        membermapper.addMember(member);
    }

    @Override
    public void editMember(Member member) {
        membermapper.updateMember(member);
    }

    @Override
    public void delMember(int id) {
        membermapper.delMember(id);
    }
}
